﻿using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace SmartPlantApp.Views
{
    /// <summary>
    /// unit选择（tree形式）
    /// </summary>
    public partial class PAUSelect : UserControl
    {
        public PAUSelect()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 点击鼠标左键窗体移动.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            var w = this.Parent as Window;
            if (w != null)
            {
                w.DragMove();
            }
        }
    }
}
